package com.hnqcgczy.shop.dao;

import com.hnqcgczy.shop.vo.TProduct;
import com.hnqcgczy.shop.vo.TProductCategory;

import java.sql.SQLException;
import java.util.List;

public interface IProductCategoryDao {
    //查询所有商品
    List<TProductCategory> listAll()throws SQLException;
    //分页查询
    List<TProductCategory> querAny(int page,int pageSize);
    //根据ID查询商品详情
    TProductCategory querByID(int tpc_id)throws SQLException;
    //根据ID删除商品
    boolean deleteById(int tpc_id)throws SQLException;
    //根据ID修改商品
    boolean updateById(int tpc_id)throws  SQLException;
    //新增商品
    boolean insert(TProductCategory tProductCategory)throws SQLException;

}
